<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.stream.TypedStream</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.stream.TypedStream";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.stream.TypedStream.html" class="symbol">tango.io.stream.TypedStream</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: Nov 2007
<p class="sec_header">Author:</p>Kris
<p class="bl"/>
        Streams to expose simple native types as discrete elements. I/O
        is buffered and should yield fair performance.
<dl>
<dt class="decl">class <a class="symbol _class" name="TypedInput" href="./htmlsrc/tango.io.stream.TypedStream.html#L27" kind="class" beg="27" end="91">TypedInput</a><span class="tparams">(T)</span> : InputFilter, Buffered; <a title="Permalink to this symbol" href="#TypedInput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Type T is the target or destination type</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="TypedInput.this" href="./htmlsrc/tango.io.stream.TypedStream.html#L35" kind="ctor" beg="35" end="38">this</a><span class="params">(InputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#TypedInput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L35">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">IBuffer <a class="symbol _function" name="TypedInput.buffer" href="./htmlsrc/tango.io.stream.TypedStream.html#L46" kind="function" beg="46" end="49">buffer</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedInput.buffer" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L46">#</a></dt>
<dd class="ddef">
<div class="summary">Buffered interface</div></dd>
<dt class="decl">TypedInput <a class="symbol _function" name="TypedInput.clear" href="./htmlsrc/tango.io.stream.TypedStream.html#L57" kind="function" beg="57" end="61">clear</a><span class="params">()</span>; <span class="attrs">[<span class="stc">override</span>, <span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedInput.clear" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L57">#</a></dt>
<dd class="ddef">
<div class="summary">Override this to give back a useful chaining reference</div></dd>
<dt class="decl">bool <a class="symbol _function" name="TypedInput.read" href="./htmlsrc/tango.io.stream.TypedStream.html#L70" kind="function" beg="70" end="73">read</a><span class="params">(inout T <em>x</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedInput.read" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L70">#</a></dt>
<dd class="ddef">
<div class="summary">Read a value from the stream. Returns false when all 
                content has been consumed</div></dd>
<dt class="decl">int <a class="symbol _function" name="TypedInput.opApply" href="./htmlsrc/tango.io.stream.TypedStream.html#L81" kind="function" beg="81" end="90">opApply</a><span class="params">(int delegate(ref T x) <em>dg</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedInput.opApply" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L81">#</a></dt>
<dd class="ddef">
<div class="summary">Iterate over all content</div></dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="TypedOutput" href="./htmlsrc/tango.io.stream.TypedStream.html#L101" kind="class" beg="101" end="135">TypedOutput</a><span class="tparams">(T)</span> : OutputFilter, Buffered; <a title="Permalink to this symbol" href="#TypedOutput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L101">#</a></dt>
<dd class="ddef">
<div class="summary">Type T is the target or destination type.</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="TypedOutput.this" href="./htmlsrc/tango.io.stream.TypedStream.html#L109" kind="ctor" beg="109" end="112">this</a><span class="params">(OutputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#TypedOutput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L109">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">IBuffer <a class="symbol _function" name="TypedOutput.buffer" href="./htmlsrc/tango.io.stream.TypedStream.html#L120" kind="function" beg="120" end="123">buffer</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedOutput.buffer" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L120">#</a></dt>
<dd class="ddef">
<div class="summary">Buffered interface</div></dd>
<dt class="decl">void <a class="symbol _function" name="TypedOutput.write" href="./htmlsrc/tango.io.stream.TypedStream.html#L131" kind="function" beg="131" end="134">write</a><span class="params">(T <em>x</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#TypedOutput.write" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.TypedStream.html#L131">#</a></dt>
<dd class="ddef">
<div class="summary">Append a value to the output stream</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2007 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:01 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>